473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Inserting binary data types

4
currently i have developed a C# application that makes ready structured variables holding binary values to be written into oracle database. The values to be inserted are different. some of them are as small as 1bit, 2bits, 3bit ....8bit, 2bytes,
and the others are as large as 8,000 bytes and some may be 4Gigs larger.
what data types should I use to store these values in my oracle10g database tables. Considering all the values are to be used by many users and are most of the time in the cache memory because they are overused every day.

thank you all.
Dec 1 '09 #1
5 3720
debasisdas
8,127 Expert 4TB
You want to insert both 1 bit and 4 Gb data into a single field ?
Dec 2 '09 #2
embza
4
No no,
I want to insert 1bit, 2bit, 3bit .... 8bit , 4gbyte in different fields in the same table.
so i want what datat types to use. I want for example the 1bit value to hold by a 1bit data type and the 2bit with 2bit datatype....memory utilization.
Dec 2 '09 #3
debasisdas
8,127 Expert 4TB
find all the compatible details in the following links.

link1
link2
link3
link4
link5
Dec 2 '09 #4
embza
4
thanks debasisdas for the reply.
I saw those links but there isn't any one of them
that fits to my requirement.
May be I have to create new data type(user defined one) that holds binary data.
Or may be a mechanism to overload the char data type to hold binary data as one character.
Eg.
x = 00000010
y char;
y := x;
so it is holding only one byte.
My need was to create a data types like the below:
It is a variable-length data type as the concept of arraylist.
example:
binary(1) is data type for one bit
binary(2) is data type for two bits;
binary(3) is data type for three bits
.
.
binary(8) is data type for three bits.

Do you think it is possible to do.
How could database professionals possibly ignored this feature in their database technology.
Thankyou
Embza
Dec 3 '09 #5
embza
4
Of all, the best of the better is using binary(n) or varbinary(n) of SQL server 2008.
for 1 bit value u r going to allocate atleast 8 bits i.e binary(1).
I don't have any other choice currently.
Please tell if there is one.
Thanks
Embza
Dec 8 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Jerry | last post by:
I have an off-the-shelf app that uses an Access database as its backend. One of the tables contains a field with an "OLE Object" datatype. I'm writing some reports against this database, and I...
0
by: Wescotte | last post by:
I'm abit confused on how to work with binary data with an ODBC connection (My database is DB2 btw) Say I have a table like CREATE TABLE EJWLIB.BLOBTEST ( ID NUMERIC(5) NOT NULL, FILENAME...
14
by: Vertilka | last post by:
I need to read binary data file written by C++ program, using my C# application. How do i marshal the bytes i read with my C# code to .NET types. The data is numbers (integers float doubles...
3
by: Chazam | last post by:
Did somene know how to insert a video file as binary data in a xml file using C#
0
by: phoenix7 | last post by:
Dear all, I want to store some data in form of a zip file into an access database. I created a table with with a column of type OLE Object, then I designed a form to insert data to the table....
0
by: srinivasaraonagisetty | last post by:
hi, I am faceing one problem, while inserting the data in db2 using clob. actually i am writing this type code: public class DBParam { private InputStream inputstream; private static int...
6
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've come across a few statements that conflict eachother and I'm wondering what is correct. I cam across a web-site (I do not remember the site right now), that explained each data type. For...
8
by: draco057 | last post by:
Hi Is there a data type in C which accepts numbers as binary and any way to add binary numbers directly?? I am using Windows OS.
11
by: itdevries | last post by:
Hi, I'm trying to convert some char data I read from a binary file (using ifstream) to a float type. I've managed to convert the int types but now I need to do the float types as well but it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.