image

Retrieve an Image stored as BLOB on a MYSQL DB

Hi folks I'm trying to create a PDF based on the information that resides on a database. Know I need to retrieve a TIFF image that is stored as a BLOB on a mysql database from Java. And I don't know how to do it. The examples I've found shows how to retrieve it and save it as a File (but on disk) and I needed to reside on memory. Table...

stuck while uploading image file in sql server though vb.net

Reposting the same question because after posting, could not edit the question. please read the bottom especially, if u read this question before - ok so this is the code i used from this site. everything works fine, but i need a little different code to upload image, and i dont know what to do - here's the code - Private Sub btnAttach...

How can I check the color depth of a Bitmap?

I'm working on an application that prints a folder of image files, including JPEG and TIFF. The TIFF images are usually Black and White (1bpp). After loading the image, I want to determine if the image is Color or B&W or Grayscale so I can send the image to the right printer (color printer or black and white printer). I'm using the Bi...

In LaTeX, how can I place text over an imported graphics object?

I have an image in the eps format that I want to include in my document. The image contains only the geometry of the object; it does not contain the necessary text. It has some arrows, and I'd like to add the text in LaTeX so the labels (which include math) look clean. How can I place an equation at a particular location over an importe...

Jquery find image height not working

I'm trying to use jQuery to find the image height of the first "grand children" of a container, then set the container to that height. But, I can't seem to pull the image height attribute - getting the src works. Any ideas? Is it just trying to pull the heights via CSS? How do i get the "real heights" I can't input the width and hei...

Wordpress images as subposts

Is it possible to have images in a certain post to be showed as subposts? What I mean is a structure like this: post - http://www.blog.com/some-post I want all images in that post(10) to be shown like this when clicked www.blog.com/some-post/image-1 www.blog.com/some-post/image-2 ... www.blog.com/some-post/image-10 is this possible? ...

I am trying to clear the currently drawn image on the cgcontext

I have drawn a uiimage on a cgcontext CGContextDrawImage(tempContext, CGRectMake(0,0,myRect.size.width,myRect.size.height), imgRef); but once user is done with the current image, i want to clear the tempContext so that I can rescale / manipulate the image and redraw it on the same context. for this i want to clear the the context and...

How to get image from vb6 MSFlexGrid OLEDragDrop event

I have a VB project that is converted from VB6 to VB.NET. In this, I have a MSFlexGrid that is used as an interop compatibiliy. That means it is somewhat converted to .NET, but internally, many of the mechanisms are still from VB6/COM. I need to drag an image from a PictureBox (which is .NET) and drop it on the flexgrid. This is what ...

Using PHP to generate screenshots from an HTML source

I've got an idea for a site that would generate png or jpeg screenshots of webpages on the fly. The end user would never see the pages, but the HTML would be turned into a screenshot instead and the end user would see that screenshot. How can I get started on this? I guess what I'm looking for is some kind of PHP function that takes the...

Java: Generating thumbnails with transparency

Hi, I'm having problems generating thumbnails of images with an Alpha channel (transparency). The code I use is this: public void saveThumbnail(File file, String imageType) { if (bufferedThumb == null) { return; } if(bufferedImage.getColorModel().hasAlpha()) { logger.debug("Original image has Alpha channel"...

JavaScript to submit form plus a value from map area?

Hi, I'm trying to create a simple search function where a user selects an option from a drop down and clicks on a map to see results for those 2 parameters I have this php at the top of my doc: <?php if ((isset($_POST["MM_search"])) && ($_POST["MM_search"] == "yes")){ $lang = $_POST['lang']; $salerent = $_POST['salerent']; $zone = ...

enable caching of images specifying a modified date

Hi.... I've a jsp page which loads many images. I'd like to cache the images for faster loading. I'll explain my idea, please correct it if it's wrong. I'm calling the picture loading servlet for each image and return as a BLOB. My idea is to add a modified date with the image and the other values like Last-Modified, expires, Cache-con...

What algorithm to use to obtain Objects from an Image.

Hi, I would like to know what algorithm is used to obtain an image and get the objects present in the image and process (give information about) it. And also, how is this done? Please do help me out! :) Thanks in advance. - Karthik.K ...

WPF: Inserting an Image element which should default to its own size

For some reason when I use <Image ...> in WPF, the image is shown smaller than its actual size. There is plenty of space for the image, it's just that it takes up all the space it can by default: <Image Source="data/images/my-image.png" /> I tried setting Stretch="None" but when I do that, the image is displayed smaller than its actua...

Qt - Drawing a Rect/Frame out of a bigger Pixmap image.

Hi there, I've been banging my head about this seemingly easy task and I could really use some help. I have a wide Image loaded in the gui (using the designer..) and I want to be able to draw only a portion of it, a rectangle. I need to be able to change this rectangle position over the large image, in order to draw a different part of ...

Elaborate css for a background image gradient

I folks. This might be more of a design question but I thought I'd give it a whirl in case someone had some masterful CSS techniques I could use. If not, I'll brace myself for the onslaught of down-voting and nay saying! You can see the logo holder here has a background image with a nice gradient to the right, and is obviously semi-tra...

Why Python on Windows can't read an image in binary mode?

Hi, I want to read a image in binary mode so that I could save it into my database, like this: img = open("Last_Dawn.jpg") t = img.read() save_to_db(t) This is working on Mac. But on Windows, what img.read() is incorrect. It's just a little out of the whole set. So my first question is: why code above doesn't work in Windows? And ...

Lightbox not working after external loaded page with images

Hello, I have implemented lightbox-plugin for jQuery of krewenki in a masterpage including all images. This was working fine. Till i put the images in a external page and load this external images page in the master document. Lightbox does not work anymore. Is this jQuery code fault, or is this a lightbox-plugin problem? Main-html <h...

Can't convert image to bytes[] C#

Hi. I'm very new to this stuff of saving images to the DB, and even when I thought it was very straight forward, it wasn't. What I'm trying to do is read and image file from the same computer in any format, display it in a picture box, and then convert the image to bytes to save it in the DB. Until now, I can display the image in the pic...

Fast WPF Image Control

I'm looking for an Image control for WPF which can rapidly change images. The built in WPF one is quite slow for the image sizes im using (scaled). I only need about ~3 FPS. I have considered dropping to WinForms and even D3D but I'm not sure thats the best way. Can anyone suggest something? ...