p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 (http://p2p.wrox.com/forumdisplay.php?f=252)
-   -   PhotoAlbum! (http://p2p.wrox.com/showthread.php?t=60803)

ostwald August 3rd, 2007 11:59 PM

PhotoAlbum!
 
Hye,
    I'm doin the photoalbum as mentioned in instant results using C#.I tried to use binarydata to store images instead of files as mentioned in instantresults. Successful upto an extent. But the problem is unless i type the url i'm not able to get the images.
for ex: collection.aspx?collectionId=1
so I feel there is a problem in binding the templates. I'm posting the project.Kindly check it out n help me.

http://www.4shared.com/file/21321679...6/gallery.html

regards,
Ossy!

Imar August 4th, 2007 02:37 AM

Hi Ossy,

I haven't looked at your source yet, but I think I know what the problem is. When you store the files on disk, you can easily refer to them using the *path* stored in the database.

However, when you store them in the database, you cannot directly stream the image "blob" into an <img> tag. Instead, you need a separate page that accepts the ID of the image and streams it to the browser.

You may want to take a look at this article:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414

The file ViewFile.aspx probably shows you exactly what you need.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

ostwald August 4th, 2007 01:37 PM

Hi Imar,
        Thanx for the reply.I'm able to display the images perfectly in a datalist n a datagrid. The only problem is when i click on a photoalbum it must show its relative pictures but its not happening. But when i type the url I stated above I'm able to see them. Once u c the code so u get the idea where I went wrong.I think I may be wrong at the databinding of the templates.

regards,
Ossy!

Imar August 4th, 2007 07:06 PM

Can you define "its not happening"? Do you get an error? If so, what error do you get?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

ostwald August 4th, 2007 11:24 PM

I mean to say that i'm not getting the pictures, I'm only getting the webpage. But when I type "Album.aspx?CollectionId=1" in the url i can see them. I'm not able to map the photos to the album. So that when i click on it i can c the pictures.
regards
Ossy!

Imar August 5th, 2007 04:26 AM

Hi Ossy,

I looked at your source, but I don't know where the problem is (I am not sure what I am supposed to see), so it's hard to suggest a fix.

Can you explain the problem in more detail, with references to pages and code?

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

ostwald August 8th, 2007 02:46 PM

Hye Imar,
           Sorry for the late reply. I was busy wid work n cudn't visit the site. Anyway I have successfully completed this Photoalbum in c# using BinaryData.Its working on fine.Check it out.

http://www.4shared.com/file/21629431...2/gallery.html

regards
Ossy!

Imar August 8th, 2007 02:51 PM

Great; glad it all worked out fine.....

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

miguel.ossa October 22nd, 2007 01:50 AM

Hi,

I'am trying to use this code, but I can't find the password for SuperAdmin and Admin users. When I try to recover the password, I get the following question: "dogs name?".


Imar October 22nd, 2007 03:20 PM

Hi there,

The password is on page 231.

Cheers,

Imar


All times are GMT -4. The time now is 01:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.