blob

Multiple storage of images and BLOB files in SQL Server

I have a question about this query on inserting. INSERT INTO BLOBTest (BLOBName, BLOBData) SELECT 'First test file', BulkColumn FROM OPENROWSET( Bulk 'C:\temp\nextup.jpg', SINGLE_BLOB) AS BLOB It works great, but my question is how do I insert more than one image at a time? I have a directory that has 1000+ images I need to i...

Writing a docx file to a BLOB using Java 1.4 inside Oracle 10g

I'm trying to generate a blank docx file using Java, add some text, then write it to a BLOB that I can return to our document processing engine (a custom mess of PL/SQL and Java). I have to use the 1.4 JVM inside Oracle 10g, so no Java 1.5 stuff. I don't have a problem writing the docx to a file on my local machine, but when I try to w...

String length at the start of a MySQL text field when using HYDRATE_NONE?

Hi, I'm using Symfony 1.4 with Doctrine. I'm saving text as MySQL text type (Doctrine "array" type) into the database, and it goes in clean & correct. When querying the data back, if I use Doctrine_Core::HYDRATE_ARRAY the data is returned as it should be. However, if I use HYDRATE_NONE, the data is returned with the text length append...

How to I retrieve an image from a URL and store it as a Blob in Java (google app engine)

I understand how to fetch a URL text page and loop over the results URL url = new URL(this.url); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String line; while ((line = reader.readLine()) != null) { .... How would I do this to fetch an image and store it as a Blob? ...

Need to compare blobs in firebird

Hey guys, I need to check on the contents of blobs in my databases (yes, plural, but one problem at a time). In one database, I have about 900 images of potentially varying sizes. I need to check to see if the versioning system that's built into our application is actually correctly replicating the image data from the previous version...

Lazy loading of Blob properties of one class

Hello, I want to lazy load of @Lob properties. First ,i use javassist to instrument my class as described here http://docs.jboss.org/hibernate/core/3.3/reference/en/html/performance.html#performance-fetching-lazyproperties: Code: My class contains "summary" and "title" properties those are Lob and other properties. Code: public class ...

Why does ActiveMQ hold messages that should be deleted from Topic?

I use ActiveMQ as Notification System(Pub/Sub model). On server: if any changes of data occur, Server send this updated data (File) to Topic using BlobMessages. There are few Clients, that subscribe on this Topic and get updated File if it exsist in Topic. The problem is that all of BlobMessages, that were sent to Topic, are hold by A...

Store png/pdf file in sqlite

Hello, How to store pdf,png file in sqlite. is this possible to store pdf and png file? Please help me out. if you have any idea please share with me. Thanks you, ...

C# Reading and Writing a Char[] to and from a Byte[] - Updated with Solution

Hi, I have a byte array of around 10,000 bytes which is basically a blob from delphi that contains char, string, double and arrays of various types. This need to be read in and updated via C#. I've created a very basic reader that gets the byte array from the db and converts the bytes to the relevant object type when accessing the pro...

Problem updating BLOB with Hibernate?

hi, i am having problem updating a blob with hibernate. (i am using Hibernate 3.3.1-GA) my model have these getters/setters for hibernate, i.e. internally i deal with byte[] so any getter/setter convert the byte[] to blog. I can create an initial object without problem, but if I try to change the content of the blob, the database colum...

BLOB Reading via IHttpAsyncHandler

Hi, I am storing images in SQL Server 2000 database (BLOB type). There is a web page in my ASP.NET application which need to show a lot images to the end user and i want to handle browser's requests for images through a IHttpAsyncHandler. I found a similer post on codeproject "Asynchronous HTTP Handler for Asynchronous BLOB DataReader."...

How to increase the default BLOB size using ActiveObjects

My group is working on a Defect Tracking project. We cannot figure out how to increase the default 2MB blob size up to 2GB, or even increase it at all. We have been getting errors when we try to manually set it in our Database. Anyone who can help would be great, we are programming in Java, using eclipse. ...

Accessing the text file that is stored on BLOB of Windows Azure

I am working on Windows Azure. I followed some tutorial about how to store text file on to the blob of windows azure. I am successful in uploading the data. Now, I wanted to access the file. I mean, I have to read the content of the file and display it.... Can anyone tell me, How to do that... Thanks, in advance... ...

Spring, Hibernate, Blob lazy loading

Dear Sirs, I need help with lazy blob loading in Hibernate. I have in my web application these servers and frameworks: MySQL, Tomcat, Spring and Hibernate. The part of database config. <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="user" value="${jdbc.username}"/> ...

insert a BLOB via a sql script ?

Hi, I have an H2 database (http://www.h2database.com) and I'd like to insert a file into a BLOB field via a plain simple sql script (to populate a test database for instance). I know how to do that via the code but I cannot find how to do the sql script itself. I tried to pass the path , i.e. INSERT INTO mytable (id,name,file) VALUE...

Windows Azure: Creating a subdirectories inside the blob

I wanted to create some subdirectories inside my blob. But it is not working out well Here is my code protected void ButUpload_click(object sender, EventArgs e) { // store upladed file as a blob storage if (uplFileUpload.HasFile) { name = uplFileUpload.FileName; // get refernce to the...

Windows Azure: Creation of a file on cloud blob container

I am writing a program that will be executing on the cloud. The program will generate an output that should be written on to a file and the file should be saved on the blob container. I don't have a idea of how to do that Will this code FileStream fs = new FileStream(file, FileMode.Create); StreamWriter sw = new StreamWriter(...

Windows Azure: How to create sub directory in a blob container

How to create a sub directory in a blob container for example, in my blob container http://veda.blob.core.windows.net/document/ If I store some files it will be http://veda.blob.core.windows.net/document/1.txt http://veda.blob.core.windows.net/document/2.txt Now, how to create a sub directory http://veda.blob.core.windo...

Blob container creation exception ...

I get an exception every time I try to create a container for the blob using the following code CloudStorageAccount storageAccInfo; CloudBlobClient blobStorageType; CloudBlobContainer ContBlob; blobStorageType = storageAccInfo.CreateCloudBlobClient(); //then I initialize storageAccInfo ContBlob = blobStorageType.GetContai...

Zend Framework: How to download file from mySql Blob field.

I am uploading files(any type) in MySql tables's blob field. Now I am able to get binary data from that field and when I print it, it shows binary data in firbug console. But I want to download that file as it was uploaded. How can I convert this binary data into orignal file? How to do it in zend? Thanks ...