blobs

Persisting Blob Streams with NHibernate

If I have a class declared as: public class MyPersistentClass { public int ID { get; set; } public Stream MyData {get;set; } } How can I use NHibernate's mappings to persist the MyData property to and from the database? ...

How do I convert from BLOB to TEXT in Mysql?

Hiya, I have a whole lot of records where text has been stored in a blob in MYSQL. For ease of handling I'd like to change the format in the DB to TEXT .. any ideas how easily to make the change so as not to interrupt the data - I guess it will need to be encoded properly? ...

C#, Storing HTML pages in an SQLite database

I want to cache large HTML pages in an SQLite database as blobs, but the HTML pages may ofcourse contain lots of characters which will corrupt the SQL statement. I'm not too happy with performing search/replace to escape all characters messing up the SQL statement, and encoding the HTML to a format accepted by SQL seems like an expensiv...

MySQL Blob to Text (data and datatype)

Hi, I have a mysql database that holds content as a blob, for whatever reason those developers chose to use a blob is out of my control. Is it possible to convert the data to text and the data type to text? ...

MySQL Blob not showing up correctly.

Hi I asked a similar question earlier about retrieving an image from a MySQL database Blob. I am using code as: header("Content-type: image/jpeg"); // change it to the right extension print $image; //where image is the blob file This code is nested inside of a webpage, so should I still modify the header? When I include the header...

plone.app.blob or z3c.blobfile?

I need a blob file field as part of a content type in plone. plone.app.blob's BlobField should provide this, but I can't find how to get a URL to download the file including the original filename (e.g. http://plone.site/plone/obj/orig-file-name.avi). Is there a way to do this using plone.app.blob? Alternately, there are a few pointers o...

Pixel chains from run length encoding

I've been banging my head for a long time on this one I am doing imaging. So far I've binarized my images, meaning that from a grayscale image, every pixel under a certain value are dropped. This gives me only some regions out of the original image with a lot of "zero pixels" all around those regions. Next I've run length encoded my re...

MySQL / PHP Drag and Drop File Upload

I am looking to upload files into a MySQL database using a drag and drop application. Any ideas? I want to be able to drag a file into the browser and then type in a file name. THANKS! ...

PHP Transferring Photos From One Oracle Database Table to Another

I am attempting to transfer a set of photos (blobs) from one table to another across databases. I'm nearly there, except for binding the photo parameter. I have the following code: $conn_db1 = oci_pconnect('username', 'password', 'db1'); $conn_db2 = oci_pconnect('username', 'password', 'db2'); $parse_db1_select = oci_parse($conn_db1,...

Windows Azure: Exception while creating a blob container

I followed a tutorial on creating a blob on windows azure. But when I do that, I get an exception error: Error while creating containerThe server encountered an unknown failure: The remote server returned an error: (300) Ambiguous Redirect. The code is : private void SetContainersAndPermission() { try { ...

Should I move big data blobs in JSON or in separate binary connection?

QUESTION: Is it better to send large data blobs in JSON for simplicity, or send them as binary data over a separate connection? If the former, can you offer tips on how to optimize the JSON to minimize size? If the latter, is it worth it to logically connect the JSON data to the binary data using an identifier that appears in both,...

CBlobResult gives pains.... using Visual C++ 2008... opencv

When I type the following code line.. where img_hsv is a Mat image... IplImage abc=img_hsv; // object that will contain blobs of inputImage CBlobResult blobs; // Extract the blobs using a threshold of 100 in the image blobs = CBlobResult(&abc,NULL,100,true); It displays the following error... error C2661: 'CBlobResult::CBlobResul...

Downloading BLOB file with Oracle and PHP

Using PHP, I'm trying to download a blob file that has already been uploaded to an Oracle 10g database. I've seen and imitated numerous examples I've found. When I access the page a File Download dialog appears allowing me to Open or Save. If I click Open, media player comes up as it should but never retrieves the file. If I choose Save,...

Tracking blobs in Aforge

I looked and looked. Does anybody know how to track blobs from Aforge? I know they don't have it implemented but I would really need to use Aforge because of the rest of the code I'm using. I saw some reference to Kalman filtering but I need some implementation and not theories. tnx, v. ...

Append text to Blob in Azure

Hello, After looking at this tutorial on blobs: channel 9, I was thinking of using a blob container to save a bunch of tweets (storing the json of each tweet that is). Ideally I would like to create a blob reference for each hour of the day, and append new tweets to this blob as they come in. The issue is that the method UploadText(stri...

Retrieve image from oracle blob field in asp vb

This is my script to load the image from the database: <%@LANGUAGE="VBSCRIPT" %> <!--#include file="db_connection.asp"--> <% Response.Expires = 0 Response.Buffer = TRUE Response.Clear Dim sql Dim rs Dim userID,str Set rs = Server.CreateObject("ADODB.Recordset") str = "SELECT b.itemimg_image FROM sct_item_image b where b.item_id...