开发者

Application Architecture Suggestion

I am preparing a J2ME application,

Which is basically data capturing utility, Which reads data from end user from form and the data will be submitted to server as the application will get connection.

I am planning to capture photo also.

Now my arch. is MIDlet will fetch data from user and will store it in RMS and as the connection is available the data will be submitted to server and it will be removed locally.

The main question is is it reliable to use RMS to store data. My one data entry will be something like + a photo[optional]

"asdjbdabhsdfjkbahsdkfbakjsdfhasfjasdfhjasdlcjalmsdhfjasdfajksdlmcfjkanmsdfgsahjkcnfhs"开发者_开发技巧

suggest me arch. changes.


I'm really struggling to understand your question.

if your asking if RMS is a reliable storage method for pictures the answer is yes. You just have to convert your image to a byte array and save. Then when you need to make it back into an image, the Image class has a constructor for making a new Image from byte array anyway. The RMS is persistent so your data will be there if you stop the app and as a default your applications RMS should only be accessible to your application (although I think you can change this manually).

I'm currently developing a peace of software witch stores pictures, audio recordings and ID strings as well as date and time stamps on the phone it's self prior to a server upload point and I use the RMS.

I'm not actually sure if there's any other form of local storage that J2ME has access to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜