I'm an ASP.Net developer and am trying to create a custom connector to access images stored in a binary column in a SQL Server database.
Some success so far, however currently having problems returning a working URL for my site to the FCKeditor's Image Properties dialog. I use a .ashx handler so my image paths look like this:
http://website/GetImage.ashx?isk=127
Re: CKFinder, ASP.Net and images in SQL Server
In the worst scenario you'll end up with:
232_file_with_underscore.jpg
where searching for first occurrence "_" will work as well.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder, ASP.Net and images in SQL Server
Thanks for your reply, Wiktor.
The problem is not the pipe character but in how the URL is returned to FCKEditor. I really just want to return:
Re: CKFinder, ASP.Net and images in SQL Server
You don't need to touch the js code, just the values that you set in the config for the paths returned and always use your id instead of a filename.
Re: CKFinder, ASP.Net and images in SQL Server
Here's an example of what I want to see in the CKFinder window i.e. thumbnail and filename:
And here's what I want returned to FCKEditor image properties window when an image is chosen in CKFinder:
There seem to be a few settings files and I was trying to step through what was being used where in the js code. I show what seems to be the main one below -- config.ascx -- but there is also one in the connector DLL template I copied -- Settings/ConfigFile.cs -- whose relevance I still don't quite understand.
My modifications to config.ascx:
My modifications to GetFilesCommandHandler.cs:
Attachments:
Re: CKFinder, ASP.Net and images in SQL Server
OK, I've worked out my own solution. I am writing my own image browser in ASP.Net. Seems to be doing the job.
Also found an answer to the "minified" code for FCKEditor here:
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Customization/Scripts_Compression
Looks like there's no equivalent for CKFinder freely available.
Re: CKFinder, ASP.Net and images in SQL Server
also did you manage to do this with the current version of fckeditor 2.6.3?
are you able to upload a small snipet of your upload method to sql server etc...
i'm looking for an exact solution also, trying to upload and download files to a sql server, but haven't got a clue were to begin
cheers
sync