RecordStore 和手机拍摄的照片
当用户用手机拍照时,我希望 LWUIT 获取特定照片以添加到记录存储中,然后检索该照片。如何实现这一目标?
When the user takes photos with his phone I want LWUIT to get a specific photo to add to a recordstore and later retrieve that photo. How to achieve that ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
RMS 不适合存储照片。因为RMS是为小量存储而设计的。您无法处理大量数据。更好的是,您可以从手机内存或存储卡中读取。另外,如何在没有应用程序的情况下拍摄当前拍摄的照片?
编辑:
您可以开发用于拍照的应用程序< /a> 并将其存储在 RMS 中(但不是大量)或通过调用 网络服务。
RMS is not good for storing the Photo's. Because RMS designed for small amount of storage. You can't handle huge amount of data. Better you can read from phone memory or memory card. Also how you can take the currently captured photo without your application?
Edit:
You can develop the application for taking the photo and store it in RMS(But not huge amount) or store it in server through calling web service.
好的,我让应用程序通过命令启动相机:
在mCaptureCommand命令的actionPerformed中:
createThumbnail的代码:
现在我不知道调用createThumbnail方法时,也就是调用Image.createImage之后,图像存储在哪里:有两个 createImage 调用,一个在 capture() 方法中,一个在 createThumbnail() 方法中。但我真正的问题是知道创建的图像的位置以及如何将其与银行客户端 recordStore id 关联。
Ok , I make the application starts the camera through a command :
In the actionPerformed of the mCaptureCommand command :
The code of createThumbnail :
Now I do not know where the Image is stored when calling the createThumbnail method , that is after calling Image.createImage : there are two createImage calls one in the capture() method and one in the createThumbnail() method. But my real problem is to know the location of the created image and how to associate it with a banking-client recordStore id.