Re-using Picture table for non-product images

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Running nop 2.6

I have created a plugin that allows admins to upload images into the Picture table in the database and have validated the information is uploaded correctly.

When I try to access one of the images via the usual URL using the Picture.Id ie: "/content/images/thumbs/0002007.jpeg", I get a 404 not found.

This used to work fine in nop 1.9. Is there something else we have to do to get images in the DB to display now?
11 years ago
Are you using the PictureService?  I'm using that for a number of non-Product related images and it always works but I'm letting the service give me the URL.
11 years ago
Ah cool, ok so getting the images using the picture service works for me:

IPictureService svc = DependencyResolver.Current.GetService<IPictureService>();
      string url = svc.GetPictureUrl(id);
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.