@Ruri thanks. for getting hex data of file we will use this ?
UTILITY File "foo.wav" Read -> VAR "data"
UTILITY Conversion ASCII HEX "<data>" -> VAR "hex data"
@Ruri thanks. for getting hex data of file we will use this ?
UTILITY File "foo.wav" Read -> VAR "data"
UTILITY Conversion ASCII HEX "<data>" -> VAR "hex data"
for example i want to upload file to a website nammed xyz for the equilant code in c# is
class Program
{
static void Main(string[] args) {
// HttpClient is normally created once, then used for all message sending
HttpClient client = new HttpClient();
client.BaseAddress = new Uri("https://xyz.com/v2/");
client.DefaultRequestHeaders.Add("authorization", "YOUR-API-TOKEN");
string jsonResult = SendFile(client, @"/path/to/foo.wav").Result;
System.Console.WriteLine(jsonResult);
}
private static async Task SendFile(HttpClient client, string filePath) {
try {
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, "upload");
request.Headers.Add("Transer-Encoding", "chunked");
var fileReader = System.IO.File.OpenRead(filePath);
var streamContent = new StreamContent(fileReader);
request.Content = streamContent;
HttpResponseMessage response = await client.SendAsync(request);
return await response.Content.ReadAsStringAsync();
}
catch (Exception ex) {
System.Console.WriteLine($"Exception: {ex.Message}");
throw;
}
}
}
}
can we do this using request block in openbullet
@ShiyaVivala it keeps old DB and settings or just make a fresh OpenBullet ?
Thanks worked after a little tweaking
the closest i can get was regexr.com/50gj7
i know to match emails only i can use
(\b[A-Za-z0-9._%+-][email protected][A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b)
but cant get email pass
so i have my old openbullet database file thats around 200 MB and openbullet dont openup when i put that file in new version of openbullet so i tried to browse that manually using a softwar5e called DATABASE BROWSER FOR SQLite upon opening it this pops up.
https://imgur.com/GrpXvYU
anyway to browse the database @Ruri ?
EDIT:
using LDB explorer i found out the record "hits" is not getting retrieved im getting this error
Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'.