************** ************** JIT Debugging To enable the JIT debugging, you must set the value jitDebugging system.windows.forms section of the configuration file application or computer (machine.config). The application must also be compiled with debugging activated.
When JIT debugging is enabled, any unhandled exceptions are sent to the JIT debugger registered on the computer instead of being handled by this dialog box.
I recently installed NopCom 2.30, I having trouble importing images into the database, I currently have Microsoft Sql 2008 and I'm trying to manually insert row's into the database to view on the front end. I can physically create the category and products but when I go to map the image it does not view on the front end. The reason for me doing this is I will be connecting to an existing database to the new one I am currently working on.
Within the admin of NopCom I have changed the Media setting's to file system and set up my configuration to the file I created. The company I am working for has over 10,000 products and images.
For the life of me I can't view the image.. Any help advice or any pointer's in the right direction would be great.
I recently installed NopCom 2.30, I having trouble importing images into the database, I currently have Microsoft Sql 2008 and I'm trying to manually insert row's into the database to view on the front end. I can physically create the category and products but when I go to map the image it does not view on the front end. The reason for me doing this is I will be connecting to an existing database to the new one I am currently working on.
Within the admin of NopCom I have changed the Media setting's to file system and set up my configuration to the file I created. The company I am working for has over 10,000 products and images.
For the life of me I can't view the image.. Any help advice or any pointer's in the right direction would be great.
I recently installed NopCom 2.30, I having trouble importing images into the database, I currently have Microsoft Sql 2008 and I'm trying to manually insert row's into the database to view on the front end. I can physically create the category and products but when I go to map the image it does not view on the front end. The reason for me doing this is I will be connecting to an existing database to the new one I am currently working on.
Within the admin of NopCom I have changed the Media setting's to file system and set up my configuration to the file I created. The company I am working for has over 10,000 products and images.
For the life of me I can't view the image.. Any help advice or any pointer's in the right direction would be great.
Kind Regards
Richard
How are you trying to import the images into the database? Are you inserting them into the database yourself?
Thank you for the quick response, Yes I am. I'm trying just to add a new row but the Picture Binary remains NULL.
We are on a localhost currently and testing the operational systems o various ECommerce packages, the company I work for has an in house database that uses a replication process to update there stock levels every evening, the database I'm currently creating will be linked to this system in time but we need to find a way of uploading the images first and connecting them to specific stock codes...
I can do it through the admin interface with ease but I have been told/asked to do it manually in the database.
Is this possible any help would be great.
Kind regards - Once again thank you for the quick response..
Thank you for the quick response, Yes I am. I'm trying just to add a new row but the Picture Binary remains NULL.
We are on a localhost currently and testing the operational systems o various ECommerce packages, the company I work for has an in house database that uses a replication process to update there stock levels every evening, the database I'm currently creating will be linked to this system in time but we need to find a way of uploading the images first and connecting them to specific stock codes...
I can do it through the admin interface with ease but I have been told/asked to do it manually in the database.
Is this possible any help would be great.
Kind regards - Once again thank you for the quick response..
How are you doing it manually... through SQL?
I don't know the table or column name off-hand, but you can try something like this:
INSERT INTO TableName(ColumnName) SELECT * FROM OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB) As Image
... to upload an image from your hard drive into the database. Of course you replace the table and column name and the file path. This code may not be exactly right, I found it online somewhere. This isn't how I do it in my program, but I can't remember that off-hand either.
I have highlighted the coloum Im having issues with. The company wants to reference a sort/product to an image so when entering a search option it goes directly to the product/information and image.
Once again any help would be greatly appreciated... Thank you..
This is the dbo.picture in question as you can see I executed the SQL as stated and was hit with the error below,
/****** Script for SelectTopNRows command from SSMS ******/ SELECT TOP 1000 [Id] ,[PictureBinary] ,[MimeType] ,[SeoFilename] ,[IsNew] FROM [Nop].[dbo].[Picture]
INSERT INTO [Nop].[dbo].[Picture](SeoFilename)
SELECT * FROM OPENROWSET(BULK N'C:\smith.jpg', SINGLE_BLOB) As Image
(83 row(s) affected) Msg 8152, Level 16, State 10, Line 9 String or binary data would be truncated. The statement has been terminated.
I would preferable store the images on a file system, any advice would be great.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.