【问题标题】:J2ME store image to fileJ2ME 将图像存储到文件
【发布时间】:2009-12-22 18:27:38
【问题描述】:

我正在尝试创建一个模拟相机的程序。如何将图像存储到手机中的文件中?我的目标是 Symbian S60v3,使用诺基亚 N82 作为我的测试手机。

【问题讨论】:

    标签: image java-me storage


    【解决方案1】:

    没关系,我明白了。我可以使用 FileConnection 来编写它 -

            FileConnection filecon = (FileConnection)
                     Connector.open("file:///E:/imagefile.jpg");
            if (!filecon.exists())
                filecon.create(); // create the file if it doesn't exist
            DataOutputStream os = filecon.openDataOutputStream();
            os.write(raw);  // Raw image
    

    【讨论】:

      猜你喜欢
      • 2023-03-06
      • 1970-01-01
      • 2011-06-06
      • 1970-01-01
      • 1970-01-01
      • 2021-07-03
      • 2017-06-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多