electronic heartbreak.
electronic heartbreak.
CC#
Created by electronic heartbreak. on 12/22/2024 in #help
✅ How to talk to Web API hosted on RPI?
No description
24 replies
CC#
Created by electronic heartbreak. on 12/15/2024 in #help
Docker-compose volume storing image
This is the volume:
volumes:
- D:/image_test:/unfiltered_images
volumes:
- D:/image_test:/unfiltered_images
This is the storage path in my code:
public string StoragePath => @"/unfiltered_images/";
public string StoragePath => @"/unfiltered_images/";
7 replies
CC#
Created by electronic heartbreak. on 12/15/2024 in #help
Docker-compose volume storing image
oh my god I FANALLY HAVE IT 😭 .
7 replies
CC#
Created by electronic heartbreak. on 12/15/2024 in #help
Docker-compose volume storing image
I see now that the host folder does get created, but there are no files into the folder being written.
7 replies
CC#
Created by electronic heartbreak. on 12/15/2024 in #help
Docker-compose volume storing image
The images do get added to the container directory. But what i want to achieve is that the images also get stored in my d-drive.
7 replies
CC#
Created by electronic heartbreak. on 12/15/2024 in #help
Docker-compose volume storing image
No description
7 replies
CC#
Created by electronic heartbreak. on 12/11/2024 in #help
Is it possible to create a file outside the project folder?
That's indeed the solution! I almost gave up last night out of frustration. Gonna work on this anytime soon so thank you for your reply.
9 replies
CC#
Created by electronic heartbreak. on 12/11/2024 in #help
Is it possible to create a file outside the project folder?
I think this issue arises due to my use of Docker 😓 .
9 replies
CC#
Created by electronic heartbreak. on 12/11/2024 in #help
Is it possible to create a file outside the project folder?
Damnit. I tried to use @"D:\UploadedFiles"; now as StoragePath but it does not create the directory and it does not create the file.
9 replies
CC#
Created by electronic heartbreak. on 12/10/2024 in #help
Architectural advice needed
In my service layer I store the image on disk. when I want to change the output directory I need to manually update the code instead of through a config file or docker for example. Do you maybe have tips for that?
5 replies
CC#
Created by electronic heartbreak. on 12/10/2024 in #help
Architectural advice needed
Hahaha yeah all have their pros and cons and for now I want to just have the job done in some kind of "clean way".
5 replies
CC#
Created by electronic heartbreak. on 12/8/2024 in #help
Unable to properly launch Web API using Docker (Compose)
Hey, I am sorry for my late reply. I have this discord muted and therefore did not managed to give you an answer. In my setup above; yes I tried reaching localhost on 8080. What I initially do in these kind of scenario's is to always map them equally. So it is always 8080:8080 & 8081:8081. Since this did not work, I removed the mappings and went back to the basics, displaying a "hello world" through a GET method.
7 replies
CC#
Created by electronic heartbreak. on 12/8/2024 in #help
Unable to properly launch Web API using Docker (Compose)
Before I pulled my hair out of frustration I wenr to the basics and tried a simple GET method: http://localhost:55720/weatherforecast this returned the "hello world" I gave it.
7 replies
CC#
Created by electronic heartbreak. on 12/8/2024 in #help
Unable to properly launch Web API using Docker (Compose)
I even tried this project setup in a default weather forecast web api but still the same result.
7 replies
CC#
Created by electronic heartbreak. on 12/8/2024 in #help
Unable to properly launch Web API using Docker (Compose)
I am running the project in .NET 9.
7 replies
CC#
Created by electronic heartbreak. on 12/8/2024 in #help
Unable to properly launch Web API using Docker (Compose)
docker-compose.override
services:
test.api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ASPNETCORE_HTTPS_PORTS=8081
ports:
- "8080"
- "8081"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
services:
test.api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ASPNETCORE_HTTPS_PORTS=8081
ports:
- "8080"
- "8081"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
7 replies
CC#
Created by electronic heartbreak. on 11/24/2024 in #help
✅ Can f# also use the newest .NET 9?
Lovely! Will give it a check later!
6 replies
CC#
Created by electronic heartbreak. on 11/24/2024 in #help
✅ Can f# also use the newest .NET 9?
Thanks @leowest 😁
6 replies
CC#
Created by electronic heartbreak. on 7/18/2024 in #help
Using IFormFile in Web API project results in network failure.
Anyone that can help me look into this issue?
6 replies
CC#
Created by electronic heartbreak. on 7/18/2024 in #help
Using IFormFile in Web API project results in network failure.
Project:
c#
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>

</Project>
c#
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>

</Project>
6 replies