inserting a file into a blob field

Posts   
 
    
hahs613
User
Posts: 2
Joined: 18-Jan-2008
# Posted on: 18-Jan-2008 21:02:50   

Do we have to do anything special to insert a file into a blob field in Oracle when using LLBLGen? Does any encoding need to be done or do we just pass the file?

Thanks in advance!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 18-Jan-2008 22:24:09   

Read the file into a byte array assign the byte array to the field save the entity.

So there's no way to stream the file directly into oracle using LLBLGen Pro. I don't know how big the file is, or if this gives memory problems?

Frans Bouma | Lead developer LLBLGen Pro
hahs613
User
Posts: 2
Joined: 18-Jan-2008
# Posted on: 18-Jan-2008 22:28:02   

I got it figured out. I will post again if I have problems.

thanks