473,769 Members | 5,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exporting pasted Images

I have created a form onto which images can be dropped and thus added
to the OLE field of a Table (Access 2000 linked to SQL 2000 server).

I use the Stephen Lebans ExportOLE function to do this and it creates
images on my shared drive beautifully!

Being new at this I wondered if there is an easy way of taking the
image whatever it's size when pasted and always exporting it as 66*75?
Nov 12 '05 #1
4 3437
Why do you need the Images to exist on your Hard drive at that specific
size. Can you not simply resize the Image control at runtime displaying
these images to match the desired dimensions?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Dom Hicklin" <dh******@parkp lace.co.uk> wrote in message
news:f5******** *************** ***@posting.goo gle.com...
I have created a form onto which images can be dropped and thus added
to the OLE field of a Table (Access 2000 linked to SQL 2000 server).

I use the Stephen Lebans ExportOLE function to do this and it creates
images on my shared drive beautifully!

Being new at this I wondered if there is an easy way of taking the
image whatever it's size when pasted and always exporting it as 66*75?


Nov 12 '05 #2


Be very careful using this approach to store images in tables. In some situations it can cause a storage
overhead of up 10 to 100 *times* the size of the original file, and associated system and network load.
This may be less apparent with an SQL Server back-end in place of Access.

It is also highly dependent on the correct configuration of client systems, regarding installed OLE Server
applications and file associations. This can be difficult to maintain over several systems or different
OS and application versions.

To avoid these and other possible problems when storing images (embedded) in tables, you can store the
images as raw binary data. This also avoids potential data loss issues when extracting (loss of quality/compression/metadata),
and interoperabilit y issues (IIS, VB etc).

I don't know of a standard way to resize images using Access. Ideally you should consider using a resampling/interpolation
algorithm to generate images at different resolutions like this (eg thumbnails). This usually gives much
better results than a standard resize operation.

Finally, if you would consider using a commercial control, may I suggest that you take a look at our 'DBPix'
image control for Access, which should be able to do exactly what you require with little effort. See
the link below for more info.

--
_______________ _______________ _______________ __________
http://www.ammara.com/
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous


dh******@parkpl ace.co.uk (Dom Hicklin) wrote:
I have created a form onto which images can be dropped and thus added
to the OLE field of a Table (Access 2000 linked to SQL 2000 server).

I use the Stephen Lebans ExportOLE function to do this and it creates
images on my shared drive beautifully!

Being new at this I wondered if there is an easy way of taking the
image whatever it's size when pasted and always exporting it as 66*75?


Nov 12 '05 #3
"Exponent" <ex******@hotma il.com> wrote in message news:<3fab50dc$ 1@lala>...
Be very careful using this approach to store images in tables. In some situations it can cause a storage
overhead of up 10 to 100 *times* the size of the original file, and associated system and network load.
This may be less apparent with an SQL Server back-end in place of Access.

It is also highly dependent on the correct configuration of client systems, regarding installed OLE Server
applications and file associations. This can be difficult to maintain over several systems or different
OS and application versions.

To avoid these and other possible problems when storing images (embedded) in tables, you can store the
images as raw binary data. This also avoids potential data loss issues when extracting (loss of quality/compression/metadata),
and interoperabilit y issues (IIS, VB etc).

I don't know of a standard way to resize images using Access. Ideally you should consider using a resampling/interpolation
algorithm to generate images at different resolutions like this (eg thumbnails). This usually gives much
better results than a standard resize operation.

Finally, if you would consider using a commercial control, may I suggest that you take a look at our 'DBPix'
image control for Access, which should be able to do exactly what you require with little effort. See
the link below for more info.

--
_______________ _______________ _______________ __________
http://www.ammara.com/
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous


dh******@parkpl ace.co.uk (Dom Hicklin) wrote:
I have created a form onto which images can be dropped and thus added
to the OLE field of a Table (Access 2000 linked to SQL 2000 server).

I use the Stephen Lebans ExportOLE function to do this and it creates
images on my shared drive beautifully!

Being new at this I wondered if there is an easy way of taking the
image whatever it's size when pasted and always exporting it as 66*75?


I can see the overhead would be an issue in larger databases, The fact
is that the pitures are being exported to a website. These websites
are for companes with 10 to 20 employees so I'm happy to risk the
overhead.

The pictures seem to resize on the form ok but have lines on them when
they are exported to disk.

I realise the answer may be obvious but I haven't stumbled on it yet!
Nov 12 '05 #4


This sample may give you some ideas:
http://www.ammara.com/support/samples/showsam475d.html

When an image is first loaded thumbnail and main images are created and stored in the database (using high
quality resampling). A simple asp front-end displays the images from the live database. You can easily
spider/crawl this site to static html and image files for upload etc. Alternatively you could adapt the
sample to save the images to files at the desired resolutions when the image is loaded.
--
_______________ _______________ _______________ __________
http://www.ammara.com/
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous
dh******@parkpl ace.co.uk (Dom Hicklin) wrote:
"Exponent" <ex******@hotma il.com> wrote in message news:<3fab50dc$ 1@lala>...
Be very careful using this approach to store images in tables. In some situations it can cause a storage
overhead of up 10 to 100 *times* the size of the original file, and associated system and network load.
This may be less apparent with an SQL Server back-end in place of Access.

It is also highly dependent on the correct configuration of client systems, regarding installed OLE Server applications and file associations. This can be difficult to maintain over several systems or different
OS and application versions.

To avoid these and other possible problems when storing images (embedded) in tables, you can store the
images as raw binary data. This also avoids potential data loss issues when extracting (loss of quality/compression/metadata),
and interoperabilit y issues (IIS, VB etc).

I don't know of a standard way to resize images using Access. Ideally you should consider using a resampling/interpolation
algorithm to generate images at different resolutions like this (eg thumbnails). This usually gives much better results than a standard resize operation.

Finally, if you would consider using a commercial control, may I suggest that you take a look at our 'DBPix' image control for Access, which should be able to do exactly what you require with little effort. See
the link below for more info.

--
_______________ _______________ _______________ __________
http://www.ammara.com/
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous


dh******@parkpl ace.co.uk (Dom Hicklin) wrote:
>I have created a form onto which images can be dropped and thus added
>to the OLE field of a Table (Access 2000 linked to SQL 2000 server).
>
>I use the Stephen Lebans ExportOLE function to do this and it creates
>images on my shared drive beautifully!
>
>Being new at this I wondered if there is an easy way of taking the
>image whatever it's size when pasted and always exporting it as 66*75?


I can see the overhead would be an issue in larger databases, The fact
is that the pitures are being exported to a website. These websites
are for companes with 10 to 20 employees so I'm happy to risk the
overhead.

The pictures seem to resize on the form ok but have lines on them when
they are exported to disk.

I realise the answer may be obvious but I haven't stumbled on it yet!


Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3415
by: unotin | last post by:
I have an application in ASP that exports to Word using the Response.ContentType method. The application references another ASP page through the img tag that uses a Response.BinaryWrite (of an img content type) for its output. In other words: App A.ASP contains the code: <%Response.ContentType = "application/vnd-msword"%> <img src="B.ASP">
0
1249
by: joe | last post by:
What is the best file extension to save images (multi-page) that will give me the option of exporting them to one PDF? My images are usually 1 or 2 pages. And I really want to scan then as one big file and have only one image path per record. I want to take all images and export then to one big PDF I'm using office 2003 I can also use Tif or Mdi
3
3836
by: gowens | last post by:
I have an ASP.Net multi-part tabbed page. One of the tab pages contains several controls (including a DataList). The DataList contains, virtually-rendered, Database images and some text fields. We'd like to take the content and format of the DataList to create a Word document (album) for the end-users. Is it possible to export the DataList (HTML table, data, etc) to a MS Word document? I haven't found anything that is very clear or...
0
947
by: Art | last post by:
I'm using DSOFramer to host instances of word template documents. One of the requirements states that users are not allowed to paste images into these documents. Therefore, is there a way to determine what type of an object is about to be pasted into a document and if not then (after it's been pasted) how to delte it? TIA, Art
2
2265
by: Yaseen D M | last post by:
I have aspx page which contains some gif, jpg and png images. PNG image is generated dynamically. This file is basically a graph image. The problem i am facing in exporting these images to word, excel and pdf. Is there anyway to export these images in ASP.NET I need solution urgent. Regards,
0
1041
by: Caleb.Howe | last post by:
I have to perform a function that seems both simple and complex at the same time. My question is whether or not Access will do it for me. If I have a page of search results, each entry of which contains a standard set of information, where one of the fields of information is an image, can I paste that entire set of results into a DB table including images? I've been able to paste from such results pages into tables with all the data...
1
2575
by: bungle | last post by:
Hi Does anyone have any suggestions for exporting a datagridview which includes graphics to excel? I know it is relatively simple to do a normal export, but the fact that I have images in the grid seems to be the sticking point. Thanks in advance
1
1463
by: LongJohnBaldry | last post by:
My database is bloated, and it's not the beer. The users wanted pictures on their forms, so I set up some OLE object fields and plonked them on the forms. Lo and behold the users went mad pasting jpg images from the web into the database. Result - chugging slowness. Desired outcome - speediness. Proposed method - use blobs. Problem - how? I need efficient ways to: 1. convert what's there into blob format 2. adapt the form controls so that...
0
3564
by: sschus1 | last post by:
I keep getting a "Missing ; from statement" Also how do you reference the linkage id? I'm completely stuck. What i am trying ot do is write a script that selects a movieclip from the library, exports it as a Flash movie (swf) to an external folder and names the swf as the linkage ID in the moveiclip, then iterate through the rest of the movie clips in the library until it has exported all movieclips in the library. Here is what i have so...
0
9586
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.