473,403 Members | 2,293 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,403 software developers and data experts.

Checking OLE file size

Hi
I'm looking for a way to check the size of the file that was used to create the OLE field of an Access database.

I've got a file on hard drive (any type), and I then add it to an Access database's OLE field. Now I would like to know how big was the orginal file.

I tried the Access Len(OleField) function, but that is not accurate - probably because of the headers that Access add to OLE objects.

I also tried to save the OLE field back as a file on the hard drive (on 3 different ways) but the new file's size is not the same as the file before it was added as the OLE object.
Especially PDF files are 10x bigger.

Any ideas?
Oct 4 '10 #1
0 1039

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

Similar topics

3
by: siliconmike | last post by:
>From my various readings I figured that there is no reliable way to check file size before upload begins via a POST method. Browser side checking can be fooled. I also figured that file size is...
3
by: Jefferis NoSpamme | last post by:
Hello all, I'm trying to limit the file size to 1 meg on upload of image files and I am trying a script from javascript internet, but it is giving me errors on IE ² is null or not an object ³...
5
by: Jefferis NoSpamme | last post by:
Hi all, I'm trying to limit the file size of an image submission and I keep running into various problems. I've got most of it working, but I'm stumped and I have a basic question as to WHY this...
3
by: puja | last post by:
hi all, In asp.net 2.0 there is a limit on file size upload of 4MB. I know this limit can be increased in web.config file. Is there any way to check the file size before upload ? if user is...
19
by: jeremyz | last post by:
Hi all, I am not a developer, but I work with several and am posting this for them. We are trying to determine whether it is possible to check the size of a file before a user uploads it. ...
2
by: banuruby | last post by:
hi, please help as how i can do the following using perl. there is a text file which contains the log details. once the textfile size crosses its maximum capacity, automatically it should...
2
by: somequestion | last post by:
During copying file , wanna read file Size like this string CheckFileSize(string fileName) { if( fileName == null ) return; FileInfo fi = new FileInfo(fileName); return fi.Length.ToString();...
1
by: brett | last post by:
If I participate in a forum that doesn't have any way to watch threads or any type of RSS, I could get the filesize of the thread I want to watch. When the filesize changes, I know there is a new...
0
by: leenadiwan | last post by:
I want to throw an error immediately if user is trying to upload a file of size greater than the specified limit. We are checking content-Length for this. But, if Im not mistaken, for large files...
1
by: sruthini | last post by:
Hi, I am trying to checking the size of a file using javascript, I am using the following code <html> <head> <script language="JavaScript"> function A() { var oas = new...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.