- 393 名前:382 mailto:sage [04/09/30 18:54:42]
- 遅くなりました、すいません。
>>390 ファイルの取得はボーダのサンプルを流用してやってます まず、byte[] data=read(ImgURL+".png")で呼び出して (長いので必要そうな所だけ。) conn = (StorageConnection)Connector.open(url); InputStream is = null; ByteArrayOutputStream baos = null; try { baos = new ByteArrayOutputStream(); is = conn.openInputStream(); byte[] buff = new byte[(int)conn.getLength()]; int readed = -1; while ( (readed = is.read( buff )) != -1 ) { baos.write( buff, 0, readed ); return buff; } } …catch/finallyなどが続く 最後のreturnでbuffの中身を呼び出し元に戻して、viewImg=Image.createImage(data,0,data.length)で画像にしてます。 多分これでいけてると思うのですが…ここに問題無ければ他の部分かな…。 >391 棒打のサンプル見てみますね。
|

|