Iam stuck up with this thing for past couple of days.
Iam saving company details in access database with compLogo as one of the field name to store the logo image as an OLE Object.
I can display the image in the form but i cannot display it in the crystal report.
I created a dataset with a datatable and created a column called compLogo with data type System.Byte and added this datatable to the database field of the report and dragged and droped the compLogo fieldobject.
And in the code i retrieved the image as a byte array and passed it to the datatable field, but it shows the following error:
System.ArgumentException: Input String was not in a correct format. Couldn't store in compLogo Column. Expected type is Byte.
I do have a website that is acting like a FTP site for uploads and downloads.
The workflow is:
- A user account is created
- A folder is created (kind of a home directory)
- A user logs in
- Uploads a file
- An agent logs in
- Download the file
When ever an agent logs in, there is a check for user accounts with no activity for 90+ days.
If found, the user account is deleted and the associated folder too.
THAT's where I have my problem.
1) The user is removed from the role (all good)
2) The user account is deleted (all good)
3) The files and the folder are deleted (issue: permission denied)
Looking at the file permissions in the Windows Explorer, none of the accounts listed does, indeed, have permission to delete the files.
The files to be deleted are ALL created one way or another via the website (either by upload of code behind file creation)
I Googled around and it looks like the Impersonation is the way to go for the deletion.
There is a online website of mine I would like to restrict users so that they will not able to save it offline using offline website copier software like HTTrack Website Copier and other similar software. Please help me.
If you manage to stop HTtrack then what about other apps that do the same thing you haven't heard of yet? Or a tool I wrote myself? Or just viewing the source and saving it? Or using my Browser's "Save As" function? Or not doing anything special, just taking the files from the cache folder? If there is no standardised way of doing something there is no way of stopping it.
If you don't want people copying your page, don't put it on the internet.
There's a website I frequent that disables the right-click context menu, it pops up a dialog saying "don't do that", with (I expect) the purpose of keeping users (like me) from saving images from the site. But I can (and do) use Print Screen or any of the screen grabbers available to do that. Why do they bother? It's a mystery.