|
yes i went the image be like this [^]
|
|
|
|
|
If you don't mind your key to be as large as the image itself, you could simply overlay a mask made of noise. Subtract the mask later on to retrieve the image again.
The "one time pad" encryption is explained on Wikipedia.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
no i went to encrypt the each pixel of the image to make the image look like this [^] and decrypt it again
|
|
|
|
|
Works the same way; you fetch a pixel, add a random number and translate that back to a color. For decrypting, subtract that same random number. Would mean that your "key" is as large as the image itself, which may be a bit of a downside.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
good now how i can do that in C#
can u gave me example for the code
or some open source Project
|
|
|
|
|
The explanation is on the wiki-page for the one time pad; I don't have sample code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
As you know how the algorithm works now, why don't you write this yourself? What you need to know is, how to read an image, how to create a random number. The rest is just combining this.
This space for rent
|
|
|
|
|
|
I've always thought that SignalR does not support the transfer of binary data and although one can convert an image into a base64 string and send it, Websocket which SignalR uses, has a size limit of 64K. So every post online related to sending an image via SignalR says it cannot be done and that Web API should be used instead for that purpose.
Having said all that, I came across a Youtube video which shows a person uploading an image in one browser and then instantaneously displaying it in another browser. Can someone explain how this can be possible
|
|
|
|
|
Did the Youtube video explicitly state that they were using SignalR to accomplish this particular feature?
This space for rent
|
|
|
|
|
Hi Pete, yes the video description did say that SignalR was used but the video only shows the uploading and displaying of images but no code was shown. The name of the video is
Real Time Image Uploading No Coding - SignalR
|
|
|
|
|
It doesn't say what version of SignalR that person was using. The size limitation was introduced around about SignalR 2. You might be able to work around this by falling the connection back to HTTP Long Polling instead (you set that in the connection.start).
This space for rent
|
|
|
|
|
Liagapi wrote: Can someone explain how this can be possible
Magic.
Pixies.
Video editing.
Other.
Since we have no idea what video you are talking about - and it's not a good idea to post youtube links here - we are hardly likely to know exactly what they did. The best person to ask is the person who made the video - I'm pretty sure that YouTube lets you comment on videos at the bottom of the page...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I have no idea what video you're talking about, but based on your description and SignalR limitations, there are TWO channels at work here.
The first is a normal upload of an image file by the browser to a web server, either through a web service, web api, POST, whatever. The server then sends a message to another SignalR client to tell it to download the image from the server using a specific URL.
The image is NOT transferred via SignalR, but the messaging the tell the clients that an image was updated is.
|
|
|
|
|
Hi all,
i want to implement a trackbar with range selection option please help me to do this.
thanks in advance.
|
|
|
|
|
Help you in what way? What class are you using for your track bar?
|
|
|
|
|
i am taking help from this article
C# RangeBar control[^]
it shows the range but i want one more thumb to show actual position.
|
|
|
|
|
That article is 14 years old so it is unlikely you will get a response from the writer. You will need to work it out from the article details and code.
|
|
|
|
|
Hi,
c# application is connecting to oracle database with oledb connection.In the windows form when the user getting data from oracle database data should be encrypted in the network.How can we implement this with odp.net.
select query into data reader and then datatable.
DataTable DT = new DataTable();
DT.Load(myOleDbDataReader1);
Grid.DataSource = DT;
|
|
|
|
|
For SQL Server, that would be set as an option in the connectionstring (see MSDN[^]); I'm not sure how Oracle would handle similar. You'd be googling for "TLS Oracle connection".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I need to create a crystal report and have to set Datasource location pointing to Development, Testing and Production servers. The created crystal report will be placed in database table and fetched at the time of reposrt generation by passing the credentials(Development or production).
Please help me in this, I need a crystal report generated with multiple datasource connection.
In C# I have written code as shown below:
oReport.SetDatabaseLogon(gcUser, gcPassword, gcDB, gcDB);
oReport.DataSourceConnections[0].SetLogon(gcUser, gcPassword);
|
|
|
|
|
I have no experience with Crystal Reports; but most applications will only accept a single datasource. A simple workaround is possible if you have MS Access installed; create a new Access database, and in that database, create a linked table. SQL Server can also do this trick.
The basic idea is that one would build the report on the single datasource (Access or SQL) that fetches their data from linked tables (that be pointing to your other datasources).
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Pretty sure that a report accepts multiple datasources.
|
|
|
|
|
One would expect that, yes
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Ajay_Chaitanya wrote: I need a crystal report generated with multiple datasource connection.
Not based on what you said you don't.
What you have is one datasource which needs to point to actual different sources based on the install.
The most obvious and easiest way to do that would be if all of the datasources had the same name. Which realistically they should.
If that isn't the case then you are going to need to provide a configuration that MUST be set when it is installed. However if reports already exist using the same database then the configuration would already exist so you would just need to find it.
I would suspect, strongly, that the Crystal reports API already has a way to support this. Probably via something like a named source.
But other than that .Net apps have many configuration options. So you could use one of those. If you are using that then you need to look at the process (which is not code) of installing the application on the target machine, to validate that it will get set correctly.
If it was me I would also add a check that insures that
1. The datasource properties are set (configuration)
2. The datasource is accessible.
That would be OUTSIDE of crystal and would use normal .Net access to the database. All it needs to do is a simple query (need not return anything.) That insures that access is set and that the app has correct permissions to access it.
|
|
|
|