2

As the title, I create a ByteArray to store the file in blob like this:
byte[] red_buf = myCursor.getBlob(1);
And I wanna use FileOutputStream to open.
But I don't know how to do.
Can anyone give me a example or website please ??

willcodejavaforfood
  • 39,821
  • 17
  • 77
  • 107
Kooper
  • 715
  • 1
  • 10
  • 13

2 Answers2

0

What you're looking for may actually be ByteArrayInputStream, instead of FileOutputStream. That's just a guess because the question is very unclear

ognian
  • 11,291
  • 4
  • 32
  • 33
0

Judging from the documentation, it looks like you could use getBinaryStream() to read the BLOB

documentation: http://developer.android.com/reference/java/sql/Blob.html

Someone Somewhere
  • 22,369
  • 11
  • 111
  • 155