blob

Copy image to BLOB from client pc aka Java function in Oracle

Hi guys, I've been stuck with this for past two days. I've go java function stored in Oracle system which is supposed to copy image from local drive do remote database and store it in BLOB - it's called CopyBLOB and looks like this: import java.sql.*; import oracle.sql.*; import java.io.*; public class CopyBLOB { static int ...

php blob to picture in joomla module in 1 Script

Hi ! I have pictures in a database and i want to read it out and display it as a picture. However i get strange long charakters as result. my code: <?php /** * @version 1.0 $ * @package HelloWorld * @copyright (C) 2010 BlaBlbb * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ /** ensure this file is being included by a parent...

Oracle Blob as img src in PHP page

I have a site that currently uses images on a file server. The images appear on a page where the user can drag and drop each as is needed. This is done with jQuery and the images are enclosed in a list. Each image is pretty standard: <img src='//network_path/image.png' height='80px'> Now however I need to reference images stored as a ...

JSF, Hibernate and serving a BLOB

I want to serve an image saved as a blob in a MySQL Database through hibernate3 in a JSF application. My intention is that /myapp/image/get.faces?id=x will serve the image saved in the database with id x. How to achieve this? ...

Dynamically create Blob in DB2 Java stored procedure

I would like to return some data as a Blob from a DB2 stored procedure written in Java. This is the code to generate the procedure on the DB2 server: CREATE PROCEDURE CLUB.P_CLUB_GET_BACKUP ( IN CLUBID INTEGER, IN BNR INTEGER, OUT BACKUP BLOB(50000000) ...

Applying an Index to a Blob/Longtext field

I am trying to create an index on a particular text string using Hibernate annotations. What I am currently doing is: @Index(name="guid_index") @Column(length=1400) private String myGUID; However, since the length of the column is 1400, this maps to SQL using the longtext type. hbm2ddl is able to create the table without mishap, but w...

Binary version of StringReplace

I'm trying to run AnsiStrings.StringReplace on a RawByteString holding a blob of data, some of which needs to be replaced. It would work, except that inside StringReplace it converts my string to a PAnsiChar, and so the search ends up bailing out as soon as it hits the first #0 byte inside the blob. I'm looking for a routine that works...

BLOB vs. VARCHAR for storing arrays in a MySQL table

I've got a design decision to make and am looking for some best practice advice. I have a java program which needs to store a large number (few hundred a day) of floating point arrays in a MySQL database. The data is a fixed length Double array of length 300. I can see three reasonable options: Store the data as a BLOB. Serialize th...

BLOB or Normalized database with textual data?

I am planning to develop a web-application just to test my knowledge on JSP/Servlets. I am planning to create a very simple "Bug tracker" and I am in the process of designing the database. I am using MySql/JDBC. There are some minor insignificant data like user's DOB, Date of Joining, list of languages/technologies the user is comfortab...

Is it possbile to update data inside a CLOB using SQL ?

I have a table having one clob column which has XML data in it. say i want to replace XYZ with ABC in clob column. Is it possible using sqlplus? ...

What is the most solid option for BLOB storage?

Hi, I have to develope something to hold blob's. I have a various options but have a hard time choosing. What is needed is for the user to upload documents in the form of images mostly. I need to make it secure. I would like some speed though it's not a prerequisite. The size of the uploaded images/documents will "probably" not be too m...

importing data "BLOB" type from one DB to another in oracle

hi, i am facing problem, while importing data from one DB to another. The problem is with when i want to import a table which contains BLOB type data. Can any one please help me, how to import BLOB type data or how to move BLOB type data from one DB to another. Please help me. ...

Deflate command line tool

I'm looking for a command line wrapper for the DEFLATE algorithm. I have a file (git blog) that is compressed using DEFLATE, and I want to uncompress it. The gzip command does not seem to have an option to directly use the DEFLATE algorithm, rather than the gzip format. Ideally I'm looking for a standard Unix/Linux tool that can do thi...

How to map small binary objects properly in SQLite/NHibernate combo (wrong type affinity)?

Trying to store property of C#/.NET type byte[] in SQLite. Here is my mapping: <class name="MyClass" lazy="false" table="MyTable"> <property name="MyProperty" type ="BinaryBlob" access="property" /> </class> In SQL server it works like a charm even without the explicit type="BinaryBlob" in the mapping. In SQLite I've tried various ...

Does anyone have any experience with Blobstreaming.org?

The practical implications of serving images from a database are easy to understand. On one hand it's consistent (since everything else is in the DB) and means that when you scale to multiple servers the files don't need replication. However it puts a huge burden on the database (time required to respond) and on the intermediat networ...

How do I place large (or at least nontrivial) BLOBs into Oracle with JDBC?

I'm working on an application to do some batch processing, and want to store the input and output data as files in BLOB fields in an Oracle database. The Oracle version is 10g r2. Using the PreparedStatement.setBinaryStream() method as below will insert a small text file into the database, but I'm not having any luck with a larger image...

Converting BLOB data into Images

Hi, I have a sqlite .db file which consists of data in string, int and blob data types. The blob data consists of images. Can anyone tell me how to convert the blob data into images and then display in a list field. Any code snippets or tutorials will be of great help... ...

Save image in Oracle without retrieving a BMP later

Hello there. Right now I'm facing some performance issues in a web app because of a situation with Oracle saving images and my webapp getting them. The database gets the input from a form, which allows user to save any kind of image as a BLOB. No matter the format, it gets saved in a table with its description and stuff. The field gett...

search for a string in a blob data type

Is there a mechanism to search for a string within a blob data type. I tried converting the blob to xml data type - however, i get a hex string output. Anyway to convert the hex string into meaningful ascii? I use JDBC 3.0 - so resultSet.getSQLXML().getString() method is not an option. ...

Open file which is stored in SQLite as blob.

As the title, I create a ByteArray to store the file in blob like this: byte[] red_buf = myCursor.getBlob(1); But I don't know what's the next step to open the file :( ...