How do I select part of a BLOB field in Oracle? -


I have a table in Oracle that stores files in the form of byte arrays in a Blob area. I want my client to be able to download the archived file in small portions (as the whole thing is downloading at one time) so I can display a progress bar.

How can I write an Oracle query only the part of the content of a Blob field retrieve? I think this will be something like this:

  SELECT PARTOF (Blobelied, 1000, 2000) AS CHUNK from tbl Where ID = 1  

If I want to To get 1000 bytes from BLOBFIELD, starting with Bite 2000

As a secondary question, is there any display problem in it? If Oracle needs to load the entire Blob field to load it into memory, then it will not be a good idea.

What can you use?


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -